package com.xiaoge.xinguan-base-web.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoge
 * @since 2021-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_blog")
@ApiModel(value="Blog对象", description="")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章简介")
    private String introduction;

    @ApiModelProperty(value = "用户名")
    private String username;

    private Integer userId;

    @ApiModelProperty(value = "录入日期")
    private Date creatime;

    @ApiModelProperty(value = "浏览量")
    private Long views;

    @ApiModelProperty(value = "分类")
    private String category;

    @ApiModelProperty(value = "文章地址")
    private String filepath;


}
